package com.generator.sysManage.positionManage.dao;

import com.generator.sysManage.positionManage.pojo.JMJob;
import com.generator.sysManage.userManage.pojo.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface IJMMap {

    //查询职位信息
    public List<JMJob> getJMJobListByJMJob(JMJob jmJob);

    //添加职位
    public Integer addJMJob(JMJob jmJob);

    //修改职位
    public Integer updateJMJob(JMJob jmJob);

    //修改职位状态(0-正常，1已撤销)
    public Integer updateState(JMJob jmJob);

    //查询某职位权限集合
    public List<Permission> getPermissionListByPM(Permission permission);

    // 赋权(就是给权限表插入多条该职位的模块权限记录)
    public Integer addPermission(Permission permission);

    //修改某职位对应的模块权限状态
    public Integer updatePermissionState(Permission permission);


}
